/*
 * @Descripttion: 
 * @Author: xgh
 * @Date: 2022-09-05 22:04:34
 * @LastEditors: xgh
 * @LastEditTime: 2022-09-07 21:36:55
 */
import service from "./request";
/* 获取车辆数据 */
export function getCarApi() {
  return service({
    url: "/getcar",
    method: "get",
  })
}

/* 分页获取车辆数据 */
export function pagGetCarApi(current, pageSize,page) {
  return service({
    url: "/paggetcar?current=" + current + "&pageSize=" + pageSize + "&page=" + page,
    method: "get",
  })
}

/* 添加车辆数据 */
export function addCarApi(data) {
  return service({
    url: "/addcar",
    method: "post",
    data:data
  })
}

/* 车辆范围搜索 */
export function CarSearchApi(data) {
  return service({
    url: "/carsearch",
    method: "post",
    data:data
  })
}

/* 车辆分组搜索 */
export function carGroupSearchApi(group) {
  return service({
    url: "/cargroupsearch?group=" + group,
    method: "get",
  })
}


/* 删除车辆数据*/
export function deleteCraApi(id) {
  return service({
    url: "/deletecar?id=" + id,
    method: "get",
  })
}

